]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Make IBus display strings consistent with g-c-c
authorRui Matos <tiagomatos@gmail.com>
Fri, 31 Aug 2012 16:14:48 +0000 (18:14 +0200)
committerRui Matos <tiagomatos@gmail.com>
Wed, 12 Sep 2012 16:54:50 +0000 (18:54 +0200)
Instead of entries like "Anthy" we want "Japanese (Anthy)".

https://bugzilla.gnome.org/show_bug.cgi?id=683124

js/ui/status/keyboard.js

index 4299af620c88dab46723a105e88e1c3d914d4c61..3dd7e3f5c79b2517015998534ba0f7de077b745b 100644 (file)
@@ -241,8 +241,10 @@ const InputSourceIndicator = new Lang.Class({
             } else if (type == INPUT_SOURCE_TYPE_IBUS) {
                 let engineDesc = this._ibusManager.getEngineDesc(id);
                 if (engineDesc) {
+                    let language = IBus.get_language_name(engineDesc.get_language());
+
                     info.exists = true;
-                    info.displayName = engineDesc.get_longname();
+                    info.displayName = language + ' (' + engineDesc.get_longname() + ')';
                     info.shortName = engineDesc.get_symbol();
                 }
             }